dojo.provide("openbravo");
dojo.provide("openbravo.core");
//dojo.registerModulePath("openbravo", "../openbravo");
//dojo.registerNamespace("openbravo", "openbravo");
//dojo.setModulePrefix("openbravo", "../openbravo");


openbravo = {
	
	version: "0.1",

	loadScriptFromUrl: function(url){
	    var scripts = document.getElementsByTagName("script");
	    for (var i = 0; i < scripts.length; i++) {
	        var src = scripts[i].src;
	        if (src && src.length > 0 && src.indexOf(url)>=0 ) {
	            return;
	        }
	    }
		
	    var script = document.createElement("script");
	    script.src = url;
	    script.type = "text/javascript";
	    document.getElementsByTagName("head")[0].appendChild(script);
	}

}